<form method="post" name="frm_SelRail" onSubmit="return false;" action="{$apm.baseurl}search/{$form_act}">

	<p class="searchAttTxt01">※10ヵ所まで選択できます。</p>

		{* 都道府県毎にループ *}
		{foreach from=$Mapping key=prefCd item=pref}

		<!-- prefBlock -->
		<div class="prefBlock">
			<div class="h2Block">
				<h2><span>{$pref.PrefName}</span><label class="allSelect"></h2>
			</div>
						<!-- selectCategoryAnchor -->
						<div id="selectCategoryAnchor">
							<!-- innerBlock -->
							<div class="innerBlock01">
								<div class="innerBlock02">
									<ul>
	{* アンカー *}
	{foreach from=$pref.EnsenKbnList item=ensenKbn}
										<li><a href="#{$prefCd}{$ensenKbn.EnsenKbn}">{$ensenKbn.EnsenKbnName}</a></li>
	{/foreach}
									</ul>
								</div>
							</div>
							<!-- /innerBlock -->
						</div>

	{* 沿線区分毎にループ *}
	{foreach from=$pref.EnsenKbnList item=ensenKbn}
						<!-- selectDetailBlock01 -->
						<div id="{$prefCd}{$ensenKbn.EnsenKbn}" class="selectDetailBlock01">
							<p class="title">{$ensenKbn.EnsenKbnName}</p>
							<!-- innerBlock01 -->
							<div class="innerBlock01">
								<!-- innerBlock02 -->
								<div class="innerBlock02">

		{* 沿線毎にループ *}
		{foreach from=$ensenKbn.RailList item=rail name=railLoop}
		    {if $smarty.foreach.railLoop.iteration % 3 == 1}
		    	{if $smarty.foreach.railLoop.iteration + 2 >= $smarty.foreach.railLoop.total}
									<ul class="last">
			    {else}
									<ul>
			    {/if}
		    {/if}

		    {if $rail.TENPO_COUNT == 0}
		    	{assign var="disabled" value=" disabled"}
		    {else}
		    	{assign var="disabled" value=""}
		    {/if}
										<li>
											<input name="RailCd[]" type="checkbox" id="selectRail{$rail.T57_ENSEN_SHIKUCHOUSON_CD}" value="{$rail.T57_ENSEN_SHIKUCHOUSON_CD}" {if $rail.DATACNT == 0}disabled{/if}
												{foreach from=$research_data.ReRailCd key="key" item="rerailcd" name="loopName"}
													{if $rerailcd == $rail.T57_ENSEN_SHIKUCHOUSON_CD}
														checked
													{/if}
												{/foreach} />
											{if $rail.DATACNT != 0}<a href="javascript:SelEnsen_Link('{$rail.T57_ENSEN_SHIKUCHOUSON_CD}');">{/if}
												{$rail.ENSEN_NAME}({$rail.DATACNT}件)
											{if $rail.DATACNT != 0}</a>{/if}
										</li>

			{if $smarty.foreach.railLoop.iteration % 3 == 0 || $smarty.foreach.railLoop.last}
									</ul>
			{/if}

		{/foreach}
								</div>
								<!-- /innerBlock02 -->
							</div>
							<!-- /innerBlock01 -->
						</div>
						<!-- /selectDetailBlock01 -->
			{if $SelEkiNull <> 1}
				<p class="moreBtn"><a href="javascript:SelEnsen()"><img src="/images/search/common/btn_more_02.jpg" alt="さらに駅を選択" width="158" height="35" class="rollImg" /></a></p>
			{/if}
	{/foreach}

		</div>
		<!-- /prefBlock -->
{/foreach}

	{if $no_left_pane == '1'}
		{$basic_kodawari_joken}
	{/if}

	<!-- searchToResult -->
	<div id="searchToResult">
		<!-- innerBlock01 -->
		<div class="innerBlock01">
			<!-- innerBlock02 -->
			<div class="innerBlock02">
				<!-- innerBlock03 -->
				<div class="innerBlock03">
					<dl>
						<dt>検索結果表示：</dt>
						<dd>
							<ul>
							
							
							
							{*
								<li>
									<label>
									<input name="dispCount" type="radio" id="radio" value="20" checked="checked" />
										20件ずつ</label>
								</li>
								<li>
									<label>
									<input type="radio" name="dispCount" id="radio2" value="40" />
										40件ずつ</label>
								</li>
								<li class="last">
									<label>
									<input type="radio" name="dispCount" id="radio3" value="60" />
										60件ずつ</label>
								</li>
							*}
								
								{* 2010/12/28 10件毎表示対応 *}
								<li>
									<label>
									<input name="dispCount" type="radio" id="radio" value="10" checked="checked" />
										10件ずつ</label>
								</li>
								<li>
									<label>
									<input type="radio" name="dispCount" id="radio2" value="20" />
										20件ずつ</label>
								</li>
								<li class="last">
									<label>
									<input type="radio" name="dispCount" id="radio3" value="30" />
										30件ずつ</label>
								</li>
								
								
								
							</ul>
						</dd>
					</dl>
					<p class="btn">
						<input name="imageField" type="image" class="rollImg" id="imageField" src="/images/search/common/btn_search.gif" alt="検索" onClick="SelEnsenKensaku('{$apm.baseurl}rstobi/rstobi');" />
					</p>
				</div>
			</div>
			<!-- /innerBlock02 -->
		</div>
		<!-- /innerBlock01 -->
	</div>
	<!-- /searchToResult -->

<div id="hiddenval">
{$hiddenTag}
</div>
</form>
